package org.csmz2333;

public class demo1 {  // 定义类
    public static void main(String[] arg) { //入口方法
        //主体代码
        int product =1001;
        String productName ="手机";
        double price = 2999.99;
        boolean isAvailable=true;
        char category ='E';
        short inventory =500;
        long quantity =123456789L;
        float discount =0.8f;
        byte life =10;
        System.out.println("商品编号:"+product);
        System.out.println("商品名字:"+productName);
        System.out.println("商品价格:"+price);
        System.out.println("是否可用:"+isAvailable);
        System.out.println("商品分类:"+category);
        System.out.println("库存数量:"+inventory);
        System.out.println("已售数量:"+quantity);
        System.out.println("商品折扣:"+discount*100+"%");
        System.out.println("使用寿命:"+life);

    }
}
